<?php

namespace App\Models\User;

use Database\Factories\UserFactory;
use Dcat\Admin\Traits\HasDateTimeFormatter;

use App\Models\Model;
use Illuminate\Auth\Authenticatable;
use Illuminate\Auth\MustVerifyEmail;
use Illuminate\Auth\Passwords\CanResetPassword;
use Illuminate\Contracts\Auth\Access\Authorizable as AuthorizableContract;
use Illuminate\Contracts\Auth\Authenticatable as AuthenticatableContract;
use Illuminate\Contracts\Auth\CanResetPassword as CanResetPasswordContract;
use Illuminate\Foundation\Auth\Access\Authorizable;

class User extends Model implements AuthenticatableContract, AuthorizableContract, CanResetPasswordContract
{
    use HasDateTimeFormatter,Authenticatable, Authorizable, CanResetPassword, MustVerifyEmail;

    protected $fillable = [
        'username',
        'email',
        'avatar',
        'gender',
        'nation_code',
        'mobile_phone',
        'password',
        'remember_token',
        'state',
        'registered_at',
        'last_login_ip',
        'last_login_at',
        'created_at',
        'updated_at' ,
    ];

    public function getRememberTokenName()
    {
        return "";
    }
}
